package com.cqc.kafka;

import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Configuration;
import org.springframework.kafka.annotation.KafkaListener;

/**
 * @author cui
 * @date 2025/5/14 22:56
 * @description
 **/

@Configuration
public class KafkaConsumer {

    private static final Logger logger = LoggerFactory.getLogger(KafkaConsumer.class);

    @KafkaListener(topics = {"aud_log_query"})
    public void listen(ConsumerRecord<String, String> record) {
        logger.info("kakfa consumer message：" + record.value());
    }
}
